import React, {Component} from 'react';

class ProfileSearch extends Component {
    static comName = 'ProfileSearch';
    constructor() {
        super();
    }

    render() {
        const {children} = this.props;
        const {profileLayoutList, layout, ncProps} = window._ssc_gy_profile ;

        return (() => {
            switch(layout) {
                case profileLayoutList.treeTable:
                    return null;
                case profileLayoutList.singleTable:
                    return (
                        <div className="nc-singleTable-search-area">
                            {children}
                        </div>
                    )
            }
        })()
    }
}

export default ProfileSearch
